package comitheima.a01oopextendsdemo01;

public class Test {
    public static void main(String[] args) {
        //1.创建布偶猫对象
        Ragdoll r1 = new Ragdoll();
        r1.eat();
        r1.drink();
        r1.catchMouse();
        System.out.println("----------------");
        //2.创建哈士奇对象
        Husky h=new Husky();
        h.eat();
        h.drink();
        h.DownHome();

    }

}
